/**
 * 
 */
package ccrClasses.layer2;

import ccrClasses.ICcr;

/**
 * @author matheus
 *
 */
public class Status implements ICcr{
	public final static String OPEN_TAG = "<Status>";

	public final static String CLOSE_TAG = "</Status>";
	
	public final static String ACTIVE = "ACTIVE";
	
	public final static String INACTIVE = "INACTIVE";
	
	public final static String RESOLVED = "RESOLVED";
	
	/**
	 * Example values: "Active", "ACTIVE", "RESOLVED", "Inactive"
	 */
	private Text text;

	public Status(Text text) {
		super();
		this.text = text;
	}

	public Status() {
		super();
	}

	/**
	 * @return the text
	 */
	public Text getText() {
		return text;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(Text text) {
		this.text = text;
	}

	/**
	 * @return the oPEN_TAG
	 */
	public String getOPEN_TAG() {
		return OPEN_TAG;
	}

	/**
	 * @return the cLOSE_TAG
	 */
	public String getCLOSE_TAG() {
		return CLOSE_TAG;
	}

	@Override
	public String constructCcrString() {		
		return new String(OPEN_TAG+text.constructCcrString()+CLOSE_TAG);
	}
	
	
}
